//
//  AppDelegate+Pay.m
//  BP_NewClient
//
//  Created by botao on 15/9/13.
//  Copyright (c) 2015年 normal. All rights reserved.
//

#import "AppDelegate+Pay.h"
#import <AlipaySDK/AlipaySDK.h>
#import "Constants.h"

@implementation AppDelegate (Pay)

- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation {
    
    //跳转支付宝钱包进行支付，处理支付结果
    [[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) {
//        NSLog(@"result = %@",resultDic);
 
    }];
    
    return YES;
}
@end
